﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShiQuan.IotDevice.Entity
{
    /// <summary>
    /// 设备安装
    /// </summary>
    public class IotDeviceInstallEntity:BasicIotDeviceEntity
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        [Display(Name = "设备编号"), MaxLength(50)]
        public string InstallCode { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        [Display(Name = "设备编号"), MaxLength(50)]
        public string RefDeviceId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        [Display(Name = "设备名称"), MaxLength(50)]
        public string DeviceName { get; set; }
        /// <summary>
        /// 设备类型:two_temperature、humiture
        /// </summary>
        [Display(Name = "设备类型"), MaxLength(50)]
        public string DeviceType { get; set; }
        /// <summary>
        /// 设备序列号
        /// </summary>
        [Display(Name = "设备序列号"), MaxLength(50)]
        public string SerialNumber { get; set; }
        /// <summary>
        /// 设备供货商
        /// </summary>
        [Display(Name = "设备供货商"), MaxLength(50)]
        public string RefSupplierId { get; set; }
        /// <summary>
        /// 设备供货商
        /// </summary>
        [Display(Name = "设备供货商"), MaxLength(50)]
        public string SupplierName { get; set; }
        /// <summary>
        /// 安装人
        /// </summary>
        [Display(Name = "安装人"), MaxLength(50)]
        public string InstalledBy { get; set; }
        /// <summary>
        /// 安装日期
        /// </summary>
        [Display(Name = "安装日期")]
        public DateTime? InstalledOn { get; set; }
        /// <summary>
        /// 所属客户
        /// </summary>
        [Display(Name = "所属客户"), MaxLength(50)]
        public string RefCorpId { get; set; }
        /// <summary>
        /// 所属客户
        /// </summary>
        [Display(Name = "所属客户"), MaxLength(100)]
        public string CorpName { get; set; }
        /// <summary>
        /// 区域标识
        /// </summary>
        [Display(Name = "区域标识"), MaxLength(50)]
        public string RefAreaId { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        [Display(Name = "省"), MaxLength(100)]
        public string ProvinceName { get; set; }
        /// <summary>
        /// 市区
        /// </summary>
        [Display(Name = "市区"), MaxLength(100)]
        public string CityName { get; set; }
        /// <summary>
        /// 区县
        /// </summary>
        [Display(Name = "区县"), MaxLength(100)]
        public string AreaName { get; set; }
        /// <summary>
        /// 街道、乡镇
        /// </summary>
        [Display(Name = "街道"), MaxLength(100)]
        public string StreetName { get; set; }
        /// <summary>
        /// 安装地点
        /// </summary>
        [Display(Name = "安装地点"), MaxLength(255)]
        public string InstalledAddr { get; set; }
        /// <summary>
        /// 位置-经度
        /// </summary>
        [Display(Name = "经度"), MaxLength(50)]
        public string Longitude { get; set; }
        /// <summary>
        /// 位置-纬度
        /// </summary>
        [Display(Name = "纬度"), MaxLength(50)]
        public string Latitude { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        [Display(Name = "备注说明"), MaxLength(255)]
        public string Remark { get; set; }
        
    }
}
